package com.powerbank.common.event.user;

import com.powerbank.common.event.BaseEvent;

/**
 * 用户实名认证完成事件
 */
public class UserIdentityVerifiedEvent extends BaseEvent {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 用户ID
     */
    private Long userId;
    
    /**
     * 真实姓名
     */
    private String realName;
    
    /**
     * 身份证号（脱敏）
     */
    private String idCardNumber;
    
    /**
     * 认证状态
     */
    private String verifyStatus;
    
    /**
     * 认证失败原因
     */
    private String failReason;
    
    public UserIdentityVerifiedEvent() {
        super();
    }
    
    public UserIdentityVerifiedEvent(Long userId, String verifyStatus) {
        super("USER_IDENTITY_VERIFIED", "user-center");
        this.userId = userId;
        this.verifyStatus = verifyStatus;
    }
    
    // Getters and Setters
    public Long getUserId() {
        return userId;
    }
    
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    
    public String getRealName() {
        return realName;
    }
    
    public void setRealName(String realName) {
        this.realName = realName;
    }
    
    public String getIdCardNumber() {
        return idCardNumber;
    }
    
    public void setIdCardNumber(String idCardNumber) {
        this.idCardNumber = idCardNumber;
    }
    
    public String getVerifyStatus() {
        return verifyStatus;
    }
    
    public void setVerifyStatus(String verifyStatus) {
        this.verifyStatus = verifyStatus;
    }
    
    public String getFailReason() {
        return failReason;
    }
    
    public void setFailReason(String failReason) {
        this.failReason = failReason;
    }
    
    @Override
    public String toString() {
        return "UserIdentityVerifiedEvent{" +
                "userId=" + userId +
                ", realName='" + realName + '\'' +
                ", idCardNumber='" + idCardNumber + '\'' +
                ", verifyStatus='" + verifyStatus + '\'' +
                ", failReason='" + failReason + '\'' +
                "} " + super.toString();
    }
}